package cn.crsc.openlookeng.adhoc.dataframe;

import cn.crsc.openlookeng.adhoc.jdbc.DataCacheUtil;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Data
@Slf4j
public class PagedDataFrame {

  private RowSchemaInfo rowSchemaInfo;
  private int rowCount;
  private Long totalCount;
  private DataFrameImpl nowDataFrame;
  private int nowPageIndex = 1;
  private int nowPageSize = DataCacheUtil.PageSize;
  private volatile boolean loading = true;

  public PagedDataFrame() {
  }

  public PagedDataFrame(RowSchemaInfo info, DataFrameImpl dataFrame) {
    this.rowSchemaInfo = info;
    this.nowDataFrame = dataFrame;
  }

}
